      *> File Name     000008_StartupObject.cbl.
      *> Description   Using a static method as the startup object.
      *> Project Type  Console Application.
      *> CodePlex URL  http://cobol.codeplex.com
 
      *> Config        In solution properties, set this project as the
      *>               startup project. In project properties, set Main
      *>               as the startup object. In case of trouble, you
      *>               may need to manually edit the .cblproj file.
 
       class-id.     Application.
       repository.
           class sys-console as "System.Console"
           .
       static.
       method-id.    Main.
       procedure division.
           move "Using a Static Method as the Startup Object"
               to sys-console::"Title"
 
           display "Static method Application.Main has been invoked."
 
           display "Press any key to continue . . . " no advancing
           invoke sys-console::"ReadKey"(true)
           .           
       end method    Main.
       end static.
       end class     Application.